package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NewTechnology;
import com.zhijian.medical.entity.vo.request.NewTechnologySearchVo;
import com.zhijian.medical.entity.vo.response.NewTechnologyVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface NewTechnologyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NewTechnology record);

    int insertSelective(NewTechnology record);

    NewTechnology selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NewTechnology record);

    int updateByPrimaryKey(NewTechnology record);

    /**
     * 查询总数
     *
     * @param newTechnologySearchVo
     * @return
     */
    int count(NewTechnologySearchVo newTechnologySearchVo);

    /**
     * 查询列表
     *
     * @param newTechnologySearchVo
     * @return
     */
    List<NewTechnologyVo> selectList(NewTechnologySearchVo newTechnologySearchVo);

    /**
     * 查询单个
     *
     * @param newTechnologySearchVo
     * @return
     */
    NewTechnologyVo selectOne(NewTechnologySearchVo newTechnologySearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    NewTechnologyVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param newTechnologySearchVo
     * @return
     */
    void deleteByCondition(NewTechnologySearchVo newTechnologySearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<NewTechnology> entities);

    /**
     * 根据UserId查询列表
     *
     * @param userId
     * @return
     */
    List<NewTechnologyVo> selectListByUserId(Long userId);
}